<?php 
$template = "{$_SERVER["DOCUMENT_ROOT"]}/modules/templates/{$config["template"]}/menu/";
if (! is_dir($template)) $template = "{$_SERVER["DOCUMENT_ROOT"]}/modules/menu/";

if (file_exists("{$template}pending_menu.txt")) echo "pending";
else  echo "published";
?>